package com.ruoyi.canteen.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 菜品对象 canteen_cp
 * 
 * @author ruoyi
 * @date 2021-09-08
 */
public class CanteenCp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 门店id */
    @Excel(name = "门店id")
    private Long mdId;

    /** 菜品名 */
    @Excel(name = "菜品名")
    private String name;

    /** 图片url */
    @Excel(name = "图片url")
    private String url;

    /** 所属标签 */
    @Excel(name = "所属标签")
    private String tag;

    /** 排序码 */
    @Excel(name = "排序码")
    private Long orderNo;

    /** 状态 0 上架 1 下架 2 售罄 */
    @Excel(name = "状态 0 上架 1 下架 2 售罄")
    private Long status;

    /** 限购数量 */
    @Excel(name = "限购数量")
    private Long limitNum;

    //单规格or多规格
    private int isSingleSpec;

    private String[] cpClass;

    private List<CanteenCpClass> cpClasses;

    private String specList;

    private List<CanteenCpSpecial>  canteenCpSpecialList;

    private long userId; //用户id 用于权限控制

    private long deptId; //部门id 用于权限控制

    /**
     * 是否删除状态
     * 1-删除 0-未删除
     */
    private Integer deleteFlag;


    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getDeptId() {
        return deptId;
    }

    public void setDeptId(long deptId) {
        this.deptId = deptId;
    }




    public int getIsSingleSpec() {
        return isSingleSpec;
    }

    public void setIsSingleSpec(int isSingleSpec) {
        this.isSingleSpec = isSingleSpec;
    }



    public String[] getCpClass() {
        return cpClass;
    }

    public void setCpClass(String[] cpClass) {
        this.cpClass = cpClass;
    }






    public String getSpecList() {
        return specList;
    }

    public void setSpecList(String specList) {
        this.specList = specList;
    }



    public List<CanteenCpSpecial> getCanteenCpSpecialList() {
        return canteenCpSpecialList;
    }

    public void setCanteenCpSpecialList(List<CanteenCpSpecial> canteenCpSpecialList) {
        this.canteenCpSpecialList = canteenCpSpecialList;
    }



    public List<CanteenCpClass> getCpClasses() {
        return cpClasses;
    }

    public void setCpClasses(List<CanteenCpClass> cpClasses) {
        this.cpClasses = cpClasses;
    }



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMdId(Long mdId) 
    {
        this.mdId = mdId;
    }

    public Long getMdId() 
    {
        return mdId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setOrderNo(Long orderNo) 
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo() 
    {
        return orderNo;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setLimitNum(Long limitNum) 
    {
        this.limitNum = limitNum;
    }

    public Long getLimitNum() 
    {
        return limitNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mdId", getMdId())
            .append("name", getName())
            .append("url", getUrl())
            .append("tag", getTag())
            .append("remark", getRemark())
            .append("orderNo", getOrderNo())
            .append("status", getStatus())
            .append("limitNum", getLimitNum())
            .toString();
    }
}
